package study.polymorphic;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class Apple extends Fruit {
    private String appleAttr;

    @Override
    public String toString() {
        return "Apple{" +
            "appleAttr='" + appleAttr + '\'' +
            ", name='" + name + '\'' +
            '}';
    }
}
